package com.byedu.mapper.course;

import com.byedu.domain.course.UserLibraryDO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by jason on 2017/5/21.
 */
@Repository
public interface UserLibraryMapper {

    /**
     * 添加用户课程信息
     * @author chenxigui
     * @date 2017-05-21
     * @param userLibraryDO
     * @return
     */
    int addUserLibrary(UserLibraryDO userLibraryDO);

    UserLibraryDO getUserLibrarybyUserIdAndLibrary(String userId, Integer libraryId);

    List<UserLibraryDO> getUserLibrarybyUserId(String userId);

    List<UserLibraryDO> getUserLibrarysbyLibraryId(int libraryId);
}
